<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        #box{
            width: 1200px;
            height: 500px;
            margin: 0 auto;
            background-color: antiquewhite;
            overflow: hidden;
        }
        #box>div:nth-child(1){
            width: 200px;
            height: 120px;
            background-color: cornflowerblue;
            margin: 100px auto;
            border-radius: 20px;
            position: relative;
        }
        #box>div:nth-child(1)::after{
            content: "";
            width: 0px;
            height: 0px;
            border-color: transparent transparent cornflowerblue transparent;
            border-width: 0px 30px 40px 30px;
            border-style: solid;
            position: absolute;
            top: -40px;
            left: 30px;

        }
        #box>div:nth-child(2){
            width: 200px;
            height: 120px;
            background-color: rgb(228, 141, 228);
            margin: 50px auto; border-radius: 20px;
            position: relative;
            border: 2px solid rgb(72, 72, 72);
        }
        #box>div:nth-child(2)::after{
                   content: "";
                   height: 0px;
                   width: 0px;
                   border-width:0 30px 40px 30px ;
                   border-color: transparent transparent rgb(228, 141, 228) transparent; 
                   border-style: solid;
                   position: absolute;
                   top: -40px;
                   left: 30px;
                   /* display: none; */
        }
        #box>div:nth-child(2)::before{
                   content: "";
                   height: 0px;
                   width: 0px;
                   border-width:0 31px 43px 31px ;
                   border-color: transparent transparent rgb(72, 72, 72) transparent; 
                   border-style: solid;
                   position: absolute;
                   top: -43px;
                   left: 29px;
        }
    </style>
</head>
<body>
    <div id="box">
        <div></div>
        <div></div>
    </div>
</body>
</html>